<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.content-title{
				text-align:center;
			}
			.modal-body{
			    text-indent: 24px;
			    line-height: 25px;
			    margin-bottom: 20px;
			}
			.content-message{
				background-color:#f0f0f0;
				padding: 5px 0px;
    			background-color: #F2F2F2;
    			text-align:center;
			}
		</style>
		<script type="text/javascript" src="js/jquery-1.12.1.min.js" ></script>
		<script type="text/javascript" src="js/tools.js" ></script>
		<script>
		$(function(){
			var str = window.location+"";
			var start =str.indexOf("?");
			str = str.substring(start+1);
			$.ax(
				"psr/getByIdResource",
				"id="+str,
				true,
				"get",
				"json",
				function(data){
					var str = "";
					if(data.messageCode===200){
						var obj = data.sysdata.psr;	
							//调用tools中的转换时间格式
						var time = getMyDate(obj.createtime);
						var mess = "<span>发布时间："+time+"</span><span>点击数："+obj.clicknum+"</span>";
						str ="<p class='content-title'>"+obj.title+"</p><p class='content-message '>"+ mess+"</p>"+ obj.context;
						
						$(".modal-body").html(str);
					}
				},
				function(){
					alert("error");
				}
			);
		})
		</script>
	</head>
	<body>
		<div class="modal-body">
			
		</div>
	</body>
</html>
